<?php

return [
    'host'          => env('MQTT_HOST', '127.0.0.1'),
    'password'      => env('MQTT_PASSWORD', ''),
    'clientId'      => env('MQTT_CLIENT_ID', ''), // 客户端 id
    'PublishID'     => env('MQTT_PUBLISH_ID', ''), // 发布者 id
    'SubscribeID'   => env('MQTT_SUBSCRIBE_ID', ''), // 发布者 id
    'clean'         => env('MQTT_CLEAN', false), // 是否清空会话 session
    'username'      => env('MQTT_USERNAME', ''),
    'certfile'      => env('MQTT_CERT_FILE', ''),
    'localcert'     => env('MQTT_LOCAL_CERT', ''),
    'localpk'       => env('MQTT_LOCAL_PK', ''),
    'port'          => env('MQTT_PORT', '1883'),
    'timeout'       => (int) env('MQTT_TIMEOUT', 10),
    'debug'         => (bool) env('MQTT_DEBUG', false), //Optional Parameter to enable debugging set it to True
    'qos'           => env('MQTT_QOS', 0), // set quality of service here
    'retain'        => env('MQTT_RETAIN', 0), // it should be 0 or 1 Whether the message should be retained.- Retain Flag

    /*
    |--------------------------------------------------------------------------
    | Lambq-Mqtt install directory
    |--------------------------------------------------------------------------
    |
    | The installation directory of the controller and routing configuration
    | files of the administration page. The default is `app/Admin`, which must
    | be set before running `artisan admin::install` to take effect.
    |
    */
    'directory' => app_path('Mqtt'),
];